package com.example.demo.entity.DTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/*
 * @Author:大力王
 * @Date:2024/6/5-05-16:14
 * 开始了
 *
 * 刷新token
 */
public class RefreshTokenDTO {
    @NotBlank(message = "刷新令牌不能为空")
    @Size(min = 8, max = 254, message = "刷新令牌长度需在8到256个字符之间")
    private String refreshToken;

    @Override
    public String toString() {
        return "RefreshTokenDTO{" +
                "refreshToken='" + refreshToken + '\'' +
                '}';
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }
}